class CreateDemandReadLogs < ActiveRecord::Migration
  def change
    create_table :demand_read_logs do |t|
      t.string :remote_ip
      t.integer :demand_id

      t.timestamps
    end
    add_index :demand_read_logs,[:remote_ip,:demand_id],unique: true
  end
end
